package cn.kgc.spring.entity;

import lombok.ToString;

import java.util.Date;

/**
 * @author: mosin
 * @version: v1.0  2022/6/30
 */
@ToString
public class User {

    private String username;
    private Integer age;
    private Date birth;

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        System.out.println("username 属性被初始化");
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        System.out.println("age 属性被初始化");
        this.age = age;
    }


}
